<?php

namespace app\controller;

use app\service\CarQrcodeService;

class CarQrcodeController extends Base
{
    //创建小程序码数据
    public function create_qrcode_data()
    {
        $res = (new CarQrcodeService())->create_qrcode_data();
        return json($res);
    }



    //生成小程序码
    public function create_qrcode()
    {

        $id = $this->request->post('id');
        $res = (new CarQrcodeService())->create_qrcode($id);
        return json($res);

    }





}